home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Can anyone HELP with variable delaration? Please?
- Date: 3 Apr 1996 10:12:36 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4juf2kINNe9v@keats.ugrad.cs.ubc.ca>
- References: <4jt07b$dul@news.us.net> <3162119a.43634755@news.ucs.ubc.ca>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <3162119a.43634755@news.ucs.ubc.ca>,
- James Fairweather <jamesdf@unixg.ubc.ca> wrote:
-
- >Here's a little hint about C, though: avoid strings like Ebola! Only
- >use strings when it's really necessary to use strings; otherwise use
- >constants or integers.
-
- ?
-
- Any variable can be declared constant, including strings:
-
- const char * const str = "Foo";
-
- Or do you mean literal constants?
-
- In what way are integers a suitable alternative representation for string data?
- --
-
-